#pragma once

#include <string>
#include <vector>
#include <algorithm>

std::string capitalize(std::string s, std::vector<int> idxs)
{
    auto it = std::remove_if(idxs.begin(), idxs.end(), [s = s.size()](int idx){ return idx >= s;});
    idxs.erase(it, idxs.end());
    for ( int idx : idxs ){
        s[idx] = std::toupper(s[idx]);
        std::cout << idx;
    }
	return s;
}
